package cn.xn.hrms.infrastructure.dao;

import java.util.Collection;
import java.util.List;

import org.apache.ibatis.annotations.Param;

import cn.xn.hrms.api.dto.res.PersonalSalaryDTO;

/**
 * @author ysz
 */
public interface PersonalSalaryDao {

    int insertSelective(PersonalSalaryDTO record);

    PersonalSalaryDTO selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(PersonalSalaryDTO record);

    List<PersonalSalaryDTO> selectAll(
            @Param("year") Integer year, @Param("month") Integer month,
            @Param("departmentId") Integer departmentId, @Param("personalId") Integer personalId);

    int updateIsDeletedByIdIn(@Param("updatedIsDeleted") Integer updatedIsDeleted, @Param("idCollection") Collection<Integer> idCollection);

}
